package com.cskaoyan.aspect.wx_coupon;

import com.cskaoyan.bean.wx_coupon.CouponParam;
import com.github.pagehelper.PageHelper;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author: Jason 805636901@qq.com
 * @create: 2021-10-22-11:39 AM
 */
@Aspect
@Component
public class CouponAspect {
    @Pointcut("execution(* com.cskaoyan.service.wx_coupon..query*(..))")
    public void WxCouponQueryPointcut() {
    }

    @Around("WxCouponQueryPointcut()")
    public Object aroundWxCouponQuery(ProceedingJoinPoint joinPoint) throws Throwable {
        Object[] args = joinPoint.getArgs();
        //CouponParam couponParam = (CouponParam) args[0];
        //CouponParam couponParam1 = (CouponParam) args[0];

        //PageHelper.startPage(int page,int limit);
        return joinPoint.proceed();
    }


}
